<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{socio.TituloDetalles}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form>
                <p:panel header="Detalle de Socio">                
                    <table border="0" style="font-size: small">                        
                        <tr>
                            <h:inputHidden value="#{socioController.selected.id}"/>                        
                            <th align="right" scope="row">RUC:</th>
                            <td style="width: 300px">
                                <p:outputLabel id="txtRUC"  value="#{socioController.selected.ruc}"/>
                            </td>
                            <td width="210" height="260" bgcolor="black" rowspan="7" align="center" valign="middle">
                                <p:graphicImage width="200" height="250" value="#{socioController.image}">
                                    <f:param name="socioId" value="#{socioController.selected.id}" />
                                </p:graphicImage>
                            </td>
                        </tr>
                        <tr>
                            <th align="right" scope="row">Nombres:</th>
                            <td width="203"><p:outputLabel id="txtNombres"  value="#{socioController.selected.nombres}" ></p:outputLabel></td>
                        </tr>
                        <tr>
                            <th align="right" scope="row">Apellidos:</th>
                            <td width="203"><p:outputLabel id="txtApellidos"  value="#{socioController.selected.apellidos}" ></p:outputLabel></td>
                        </tr>
                        <tr>
                            <th align="right" scope="row">Dirección:</th>
                            <td width="203"><p:outputLabel id="txtDireccionSocio"  value="#{socioController.selected.direccion}" ></p:outputLabel></td>
                        </tr>
                        <tr>
                            <th align="right" scope="row">Teléfono:</th>
                            <td width="203"><p:outputLabel id="txtTelefonoSocio"  value="#{socioController.selected.telefono}" ></p:outputLabel></td>
                        </tr>
                        <tr>
                            <th align="right" scope="row">Email:</th>
                            <td width="203"><p:outputLabel id="txtCorreoSocio"  value="#{socioController.selected.email}" ></p:outputLabel></td>
                        </tr>
                        <tr>
                            <th align="right" scope="row">Estado:</th>
                            <td><p:selectBooleanCheckbox disabled="true" value="#{socioController.selected.estado}"/></td>                                                   
                        </tr>    
                        <tr>
                            <th align="right" scope="row"></th>
                            <td></td>                       
                            <td align="center"><strong>Fotografía</strong></td>
                        </tr> 
                    </table> 
                    <div align="left" style="font-size: small">                        
                        <p:commandLink ajax="false" action="#{socioController.cargarModificarDetalleSocio(socioController.selected.id)}" 
                                       value="#{socio.Modificar}"
                                       rendered="#{accionController.getAccionByVista('Socio', 'Editar')}"/>
                        <br />
                        <h:link outcome="index" value="#{socio.RegresarIndex}"/>
                    </div> 
                </p:panel>      
            </h:form>
        </ui:define>
    </ui:composition>
</html>

